package com.develop.data.loan.option;

import com.develop.data.loan.option.constraint.CodedOption;
import com.develop.data.loan.option.constraint.CommentedOption;
import lombok.AllArgsConstructor;
import lombok.Getter;


@AllArgsConstructor
public enum LoanCorpusType implements CodedOption, CommentedOption {

    EQUAL_CORPUS_ON_SCHEDULE("01", "等额本息"),
    EQUAL_PRINCIPAL_ON_SCHEDULE("02", "等额本金"),
    INTEREST_ON_SCHEDULE_PRINCIPAL_MATURITY("03", "按期付息到期还本"),
    ALL_AT_MATURITY("04", "到期一次还本付息");

    @Getter private String code;
    @Getter private String comment;
}
